package com.urbanski.util.collections;

import java.util.Map;

public class CollectionUtils
{
	public static <A, B> B insertOrGet(Map<A, B> map, A key, B value)
	{
		if (!map.containsKey(key))
		{
			map.put(key, value);
		}
		
		return map.get(key);
	}

}
